#pragma once

#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/event_groups.h"
#include "freertos/semphr.h"
#include "esp_timer.h"
#include "esp_lcd_panel_io.h"
#include "esp_lcd_panel_vendor.h"
#include "esp_lcd_panel_ops.h"
#include "driver/gpio.h"
#include "esp_err.h"
#include "esp_log.h"
#include "lvgl.h"
#include "driver/ledc.h"

//#include "demos/lv_demos.h"

// PCLK frequency can't go too high as the limitation of PSRAM bandwidth


#define LCD_BK_LIGHT_ON_LEVEL 1
#define LCD_BK_LIGHT_OFF_LEVEL !LCD_BK_LIGHT_ON_LEVEL


// The pixel number in horizontal and vertical
//#define LCD_H_RES 800
//#define LCD_V_RES 480
#define LVGL_TICK_PERIOD_MS 2


void guiTask(void *pvParameter);